package com.health.db.service.user.impl;

import java.util.List;

import com.health.db.dao.user.IUserCashAccountIdNoDao;
import com.health.db.model.UserCashAccountIdNo;
import com.health.db.model.UserCashAccountIdNoExample;
import com.health.db.service.user.IUserCashAccountIdNoService;

/**
 * Created by YYY-Work on 2017/5/31.
 * 
 */
public class UserCashAccountIdNoServiceImpl implements IUserCashAccountIdNoService{

    private IUserCashAccountIdNoDao userCashAccountIdNoDao;

    /**
     * 
     * example object
     * {
     *  ownerid 医生userId
     *  accounttypeid 
     * }
     */
    @Override
    public List<UserCashAccountIdNo> queryUserCashAccountIdNo(UserCashAccountIdNoExample example) {
        return userCashAccountIdNoDao.selectByCondition(example);
    }

    /**
     * record ownerid
     * 
     */
    @Override
    public int insertUserCashAccountIdNo(UserCashAccountIdNo record) {
        return userCashAccountIdNoDao.insertCondition(record);
    }

    @Override
    public int updateUserCashAccountIdNo(UserCashAccountIdNo record) {
        return userCashAccountIdNoDao.updateUserCashAccountIdNo(record);
    }

    public IUserCashAccountIdNoDao getUserCashAccountIdNoDao() {
        return userCashAccountIdNoDao;
    }

    public void setUserCashAccountIdNoDao(IUserCashAccountIdNoDao userCashAccountIdNoDao) {
        this.userCashAccountIdNoDao = userCashAccountIdNoDao;
    }
}
